package com.studydemo.controller;

import com.studydemo.common.R;
import com.studydemo.entity.SysUser;
import com.studydemo.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/login")
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;
    @PostMapping("/in")
    public R loginIn(@RequestBody SysUser sysUser){
        return sysUserService.loginIn(sysUser);
    }
    @GetMapping("/on")
    public R losd(){
        return R.success("niha");
    }

}
